words =input("请输入一个字符串：")
counts={}
if words !="":
    for word in words:
        counts [word] =counts.get(word,0)+1
        print(counts)
    else:
        print("{}")